package cn.lds.j367.dsbank.service;

import cn.lds.j367.dsbank.common.dto.ResultDTO;
import cn.lds.j367.dsbank.entity.Employee;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface EmpService extends UserDetailsService {

    ResultDTO<List<Employee>> selectEmployeeByEmp(Employee employee);

    ResultDTO<Employee> selectEmpById(Integer empId);

    ResultDTO<Employee> loginEmp(Employee employee);

    ResultDTO addEmp(Employee employee,Integer[] roles);

    ResultDTO modifyEmp(Employee employee);

    ResultDTO deleteEmp(Integer empId);
}
